<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
	String allPath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort();
	pageContext.setAttribute("appPath", appPath);
	pageContext.setAttribute("allPath", allPath);
	request.setCharacterEncoding("gb2312");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="common/head.jsp" flush="true">
	<jsp:param name="title" value="图书馆::常见问题" />
</jsp:include> 
</head>
<body>
<div class="container">
	<jsp:include page="common/menu.jsp" flush="true"/>
	<form name="mainForm" id="mainFormID" action="faq.do" method="post">
	<input type="hidden" id="action" name="action" value="page"/>
	<input type="hidden" id="sort" name="sort" value="${sort}"/>
    <div class="container">
      <div class="span-6">
	  	<div class="title-bar ui_sr"><h4>常见问题</h4></div>
            <ul class="menu-list"> 
	            <c:forEach var="type" items="${typeList}" varStatus="status">
	                <li><a href="<%=appPath%>/faq.do?action=page&sort=${type.sortMapId}">${type.value}</a></li>
	           </c:forEach>
           </ul>
		   <div class="title-bar ui_sr"><h4>常见问题搜索</h4></div>
		    		<div class="sub-search">
		    		<form action="faq.do" method="get">
					标题:
					<input name="question" type="text" size="15" maxlength="40" value="${question}"/>
					<input type="submit" value="查找" class="submit" />
					</form> 
            		</div>
        </div>
        <div class="span-18 last">
            <div class="header-1">
            	<div class="left">当前位置: <a href="<%=appPath%>/index.do">首页</a> 
            	&rsaquo; <a href="<%=appPath%>/faq.do?action=page">常见问题</a>
            	</div>
            </div>
            <ul class="news-list2">
				<c:forEach var="faq" items="${list}" varStatus="status">
	                <li><a href="<%=appPath%>/faq.do?event=single&id=${faq.faqID}">${faq.question}</a></li>
				</c:forEach>
            </ul>  
			<jsp:include page="common/page.jsp" flush="true"/>
        </div> 
    </div>
	</form>        
<jsp:include page="common/foot.jsp" flush="true"/>
</div>
</body>
</html>  